package com.sptpc.hellospring.controler;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

public class HelloControler {
    @GetMapping("/hello")
    @ResponseBody
    public String hello(@RequestParam(value = "neme",defaultValue = "spring") String name){
        return "hello,"+name;
    }
}
